package com.cius.util;

/**
 * Created by CiusCheung on 16/9/18.
 */
public class AppException extends RuntimeException{
    private  String  message;
    private String[] args;
    private String defaultMessage;

    public AppException(String messge){
        this.message = messge;
    }

    public  AppException(String message,String...args){
        this.message = message;
        if(args != null && args.length > 0){

        }
    }

    public AppException(String  message,String[] args,String defaultMessage){
        this.message = message;
        this.args = args;
        this.defaultMessage = defaultMessage;
    }

//    @Override
    public String getMessage() {
        return message;
    }

    public String[] getArgs() {
        return args;
    }

    public String getDefaultMessage() {
        return defaultMessage;
    }
}
